package cn.edu.scau.cmi.liujiaming.chapter05;

public class EXample5_6 {
	public static void main(String []args) {
		Circle circle=new Circle();
		Rectangle rect=new Rectangle();
		Geometry geometry=new Geometry(rect,circle);
		geometry.setRectanglePosition(30, 40);
		geometry.setRectangleWidthAndHeight(120, 80);
		geometry.setCirclePosition(260, 30);
		geometry.setCircleRaduis(60);
		System.out.println("几何图形中圆和矩形的位置关系为：");
		geometry.showState();
		System.out.println("几何图形重新调整了圆和矩形的位置。");
		geometry.setRectanglePosition(220, 160);
		geometry.setCirclePosition(40, 30);
		System.out.println("调整后矩形和圆的位置关系为：");
		geometry.showState();
	}

}
